package com.yanqu.road.entity.log.chefduel;

import com.yanqu.road.entity.FieldTypeAnnotation;
import com.yanqu.road.entity.log.ServerBaseLog;

@FieldTypeAnnotation(tableName = "t_l_chef_duel_rise",desc = "厨神对决-玩家晋级",autoSave = true, uploadCk = true, dataUpload = true, eventName = "cook_rise")
public class LogChefDuelPromotion extends ServerBaseLog {

    @FieldTypeAnnotation(desc = "活动id", isIndex = true, dataAttribute = "activityid")
    private int activityId;
    @FieldTypeAnnotation(desc = "用户id", isIndex = true)
    private long userId;
    @FieldTypeAnnotation(desc = "阶段", dataAttribute = "after_level")
    private int phase;
    @FieldTypeAnnotation(desc = "上一阶段积分", dataAttribute = "after_score")
    private long score;
    @FieldTypeAnnotation(desc = "上一阶段排名")
    private int preRank;
    @FieldTypeAnnotation(desc = "阵营")
    private int campId;

    public LogChefDuelPromotion(int activityId, long userId, int phase, long score, int preRank, int campId) {
        this.activityId = activityId;
        this.userId = userId;
        this.phase = phase;
        this.score = score;
        this.preRank = preRank;
        this.campId = campId;
    }

    @Override
    public long getUserId() {
        return userId;
    }
}
